package com.antonauoja.javaril;

import java.util.Date;

public class RilItem {

	private int itemID;
	private String title;
	private String url;
	private Date updated;
	private Date added;
	private boolean read;

	public RilItem() {}

	public RilItem(String title, String url) {
		this.title = title;
		this.url = url;
	}

	public RilItem(int itemID, String title, String url, Date updated, Date added, boolean read) {
		super();
		this.itemID = itemID;
		this.title = title;
		this.url = url;
		this.updated = updated;
		this.added = added;
		this.read = read;
	}
	
	
	public int getItemID() {
		return itemID;
	}

	public void setItemID(int itemID) {
		this.itemID = itemID;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isRead() {
		return read;
	}

	public void setRead(boolean read) {
		this.read = read;
	}
	
    public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	public Date getAdded() {
		return added;
	}

	public void setAdded(Date added) {
		this.added = added;
	}

	@Override
    public String toString() {
        return 	"Item ID: " + itemID + '\n' + 
        		"Title: " + title + '\n' + 
        		"URL: " + url + '\n' + 
        		"Updated: " + updated + '\n' +
        		"Added: " + added + '\n' + 
        		"Read?: " + read + '\n';
    }
	
}
